<form id="form" class="form-horizontal" style=" padding:10px" enctype="multipart/form-data" action="<{:U('set_offline_subject_price')}>" autocomplete="off" method="post" action-after="callback">
    <input type="hidden" name="school_id" value="<{$data.id}>">
    <div class="form-group">
        <label class="col-sm-5 control-label">学校</label>
        <div class="col-sm-6">
            <input type="text" disabled="disabled" class="form-control" value="<{$data.name}>">
        </div>
       
    </div>
    <volist name="offline_subject_list" id="vo">
        <div class="form-group">
        <php>$subjectid=$vo['subjectid']</php>
            <label class="col-sm-5 control-label"><{$vo.subject}></label>
            <div class="col-sm-6">
                <input type="text"  placeholder="线下班级价格" name="data[<{$vo.subjectid}>][price]" class="form-control" value="<{$vo.price}>">
            </div>
          
        </div>
								
								
								<div class="form-group">
            <label class="col-sm-5 control-label">常量</label>
            <div class="col-sm-6">
                <input type="text"  placeholder="常量" name="data[<{$vo.subjectid}>][constant]" class="form-control" value="<{$vo.constant}>">
            </div>
        </div>


								<div class="form-group">
            <label class="col-sm-5 control-label">佣金倍率</label>
            <div class="col-sm-6">
                <input type="text"  placeholder="佣金倍率" name="data[<{$vo.subjectid}>][commission]" class="form-control" value="<{$vo.commission}>">
            </div>
        </div>
								
        <div class="form-group">
            <label class="col-sm-5 control-label">在线报名</label>
            <div class="col-sm-6" style="margin-top:10px"> <{:form_radio("data[$subjectid][apply]",array('1'=>'不可选','2'=>'可选','3'=>'必选'),$vo['apply'])}> </div>
            
        </div>
        <div class="form-group">
            <label class="col-sm-5 control-label">线下班级</label>
            <div class="col-sm-6" style="margin-top:10px" > <{:form_radio("data[$subjectid][offline]",array('1'=>'不可选','2'=>'可选','3'=>'必选'),$vo['offline'])}> </div>
           
        </div>
        <div style="border-bottom:1px solid #ccc; margin-bottom:10px; clear:both"></div>
    </volist>
    <div class="form-group">
        <div class="col-sm-offset-5 col-sm-6">
            <button type="submit" class="btn btn-primary">保存</button>
        </div>
    </div>
</form>
<script>
function callback(data){
	alert("设置成功");	
}
</script> 
